package com.example.adms.leave.service;


import com.example.adms.leave.dto.*;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.adms.leave.entity.Leave;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author hyt
 * @since 2023-04-20
 */
public interface LeaveService extends IService<Leave> {
    int leaveTime(String userId);

    int addLeave(leaveMsg msg);

    boolean examineLeave(ExamineLeave examineLeave);

    LeaveDetails getLeaveDetails(int leaveId);

    boolean deleteLeave(int leaveId);

    Map<String, Object> getLeaveList(QueryLeave queryLeave);

    Map<String, Object> LeaderGetLeaveList(QueryLeave queryLeave);

    Map<String, Object> employeeLeaveList(QueryLeave queryLeave);

    List<Object> leaveReport(leaveReport report);
}
